
version 15
capture log close
set more off
clear
clear matrix
clear mata

if c(username)=="WB485280" {
		glo rootdir		"C:\Users\wb485280\OneDrive - WBG\radicalization"
		}
if c(username)=="WB382635" {
		glo rootdir		"C:\Users\wb382635\Dropbox\Unemp & daesh"
		}
if c(username)=="WB452275" {
		glo rootdir		"C:\Users\WB452275\Dropbox\Projects\Unemp & daesh"
		}
if c(username)=="sarurchaudhary" {
		glo rootdir		"/Users/sarurchaudhary/Dropbox/Unemp & daesh"
		}

		glo	datadir     "${rootdir}/Data/Raw data"
		glo outdir		"${rootdir}/Data/Working datasets"
		glo dodir		"${rootdir}/Dofiles"
        
		cd "${outdir}"
		

* ------------------------------------------------------------------------------

* Date : March 2018 [Checked Oct 2021]

* Project : Daesh FF Working Paper (The World Bank)

* This is the do file for preparing our datasets for merge. 

* The original datasets are stored in the 'raw data' folder.

* The do files below are localted in the folder 'prep_data" in Dofiles folder

* The final datatsets are getting stored in Working datasets folder 

* ------------------------------------------------------------------------------

* Preparing datasets for merge

           do "${dodir}/prep_data/macrovars_wdi_prep.do"
           do "${dodir}/prep_data/macrovars_gallup_prep.do"
		   do "${dodir}/prep_data/macrovars_gallup2_prep.do"
           do "${dodir}/prep_data/macrovars_gallup3_prep.do"
		   do "${dodir}/prep_data/macrovars_cow_prep.do"
		   do "${dodir}/prep_data/macrovars_polity4_prep.do"
		   do "${dodir}/prep_data/macrovars_qog_prep.do"
		   do "${dodir}/prep_data/macrovars_ab4_prep.do"  
		   do "${dodir}/prep_data/macrovars_wv6_prep.do"  
		   do "${dodir}/prep_data/macrovars_isis_prep.do" 
		   do "${dodir}/prep_data/macrovars_ilo_prep.do"
		   do "${dodir}/prep_data/macrovars_i2d2_prep.do"
		   do "${dodir}/prep_data/macrovars_pewrelg_prep.do"
		   do "${dodir}/prep_data/macrovars_distance_prep.do"
		   do "${dodir}/prep_data/macrovars_pewmus_prep.do"
		   do "${dodir}/prep_data/macrovars_visa_prep.do"

		   * do file for prearing the country-education datasets 
		   do "${dodir}/prep_data/macrovars_isis_CE_prep.do" 
		   do "${dodir}/prep_data/macrovars_wages_CE_prep.do"


		                                                                   
																		   
